Skip to content

Conversation

@purplecabbage
Copy link
Member

@purplecabbage purplecabbage commented May 15, 2025

Description

We were setting action name differently from Runtime.
Proper format is /ns/pkg/action

Related Issue

adobe/aio-cli#752

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@purplecabbage purplecabbage requested a review from Copilot May 15, 2025 23:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modifies the way the action name is set by aligning the format with the Runtime, ensuring that it follows the "/ns/pkg/action" pattern.

  • Updated the __OW_ACTION_NAME environment variable to include the namespace, package name, and action name.
  • Standardized the action name format to mirror the live runtime behavior.
Comments suppressed due to low confidence (1)

src/lib/run-dev.js:364

  • [nitpick] Consider verifying that process.env.__OW_NAMESPACE does not already include a leading slash to avoid duplicating slashes in the resulting action name.
process.env.__OW_ACTION_NAME = `/${process.env.__OW_NAMESPACE}/${packageName}/${actionName}`

@codecov
Copy link

codecov bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (2b63ead) to head (df0bfc9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #152   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          642       642           
  Branches       132       132           
=========================================
  Hits           642       642           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@shazron shazron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@purplecabbage purplecabbage merged commit 0fbfe43 into main May 21, 2025
10 checks passed
@purplecabbage purplecabbage deleted the ACNA-3824 branch May 21, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants